all:
#	cargo build
	rm -f ../../../target/debug/libmsgbus.so
	g++ -g -ffunction-sections -fdata-sections -Wl,--gc-section cdemo.cpp -o cdemo -L../../../target/debug -L../../ -lmsgbuscpp -lmsgbus -lpthread -ldl
dist:
#	cargo build --release
	rm -f ../../../target/release/libmsgbus.so
	g++ -O2 -ffunction-sections -fdata-sections -Wl,--gc-section cdemo.cpp -o cdemo -L../../../target/release -L../../ -lmsgbuscpp -lmsgbus -lpthread -ldl
run: all
	LD_LIBRARY_PATH=../../../target/debug ./cdemo
rund: dist
	LD_LIBRARY_PATH=../../../target/release ./cdemo
clean:
	rm cdemo
